﻿@model OnlinePharmacyV001.Models.FeedBack

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>FeedBack</legend>
        <table width="100%">
         <tr>
          <td>
           <font style="color:blue;">@Html.LabelFor(model => model.fbId)</font>:      
            @Html.DisplayFor(model=>model.fbId)        
            @Html.HiddenFor(model => model.fbId)
            @Html.ValidationMessageFor(model => model.fbId)          
          </td>
        <td>
         <font style="color:blue;">Current @Html.LabelFor(model => model.fbStatus)</font>:           
            @if (Html.DisplayFor(model => model.fbStatus).ToHtmlString() == "1")
            {
                @("Read");
            }
            else
            {
                @("Un-Read");
            }
    <br />
    <font style="color:blue;">New Modified @Html.LabelFor(model => model.fbStatus)</font>:           
         @if (Html.DisplayFor(model => model.fbStatus).ToHtmlString()=="1")
      {
          <select name="fbStatus">
        <option value="0">Un-Read</option>
        <option value="1" selected="selected">Read</option>
       </select>
      }     else{
           <select name="fbStatus">
        <option value="0"selected="selected">Un-Read</option>
        <option value="1" >Read</option>
       </select>
      }     
  
            <input type="submit" value="Save" style="float:right; vertical-align:middle; height:30px"/>
 
        </td>
         </tr>
         <tr>
          <td colspan="2"style="background-color:InfoBackground; text-align:center;"><div class="editor-label">
            @Html.LabelFor(model => model.fbContent)
        </div></td>
         </tr>
         <tr>
          <td colspan="2"><div class="editor-field">
            @Html.DisplayFor(model => model.fbContent)
            @Html.HiddenFor(model => model.fbContent)
            @Html.ValidationMessageFor(model => model.fbContent)
        </div></td>
         </tr>
         <tr>
          <td colspan="2" style="text-align:right;"> <div class="editor-label">
            @Html.LabelFor(model => model.fbPostedDate)
        </div><div class="editor-field">
            @Html.DisplayFor(model => model.fbPostedDate)
            @Html.HiddenFor(model => model.fbPostedDate)
            @Html.ValidationMessageFor(model => model.fbPostedDate)
        </div></td>
         </tr>
        </table>
        <table width="100%">
         <tr>
          <td colspan="2" style="background-color:InfoBackground; text-align:center;">AuthorDetails</td>
         </tr>
         <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorName):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorName)
            @Html.HiddenFor(model => model.fbAuthorName)
            @Html.ValidationMessageFor(model => model.fbAuthorName)
        </div></td>
         </tr>
          <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorAddress):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorAddress)
            @Html.HiddenFor(model => model.fbAuthorAddress)
            @Html.ValidationMessageFor(model => model.fbAuthorAddress)
        </div></td>
         </tr>
          <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorCity):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorCity)
            @Html.HiddenFor(model => model.fbAuthorCity)
            @Html.ValidationMessageFor(model => model.fbAuthorCity)
        </div></td>
         </tr>
          <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorCountry):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorCountry)
            @Html.HiddenFor(model => model.fbAuthorCountry)
            @Html.ValidationMessageFor(model => model.fbAuthorCountry)
        </div></td>
         </tr>
          <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorPostalCode):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorPostalCode)
            @Html.HiddenFor(model => model.fbAuthorPostalCode)
            @Html.ValidationMessageFor(model => model.fbAuthorPostalCode)
        </div></td>
         </tr>
          <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorState):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorState)
            @Html.HiddenFor(model => model.fbAuthorState)
            @Html.ValidationMessageFor(model => model.fbAuthorState)
        </div></td>
         </tr>
          <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorPhone):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorPhone)
            @Html.HiddenFor(model => model.fbAuthorPhone)
            @Html.ValidationMessageFor(model => model.fbAuthorPhone)
        </div></td>
         </tr>
          <tr>
          <td> <div class="editor-label">
            @Html.LabelFor(model => model.fbAuthorEmail):
        </div></td>
          <td><div class="editor-field">
            @Html.DisplayFor(model => model.fbAuthorEmail)
            @Html.HiddenFor(model => model.fbAuthorEmail)
            @Html.ValidationMessageFor(model => model.fbAuthorEmail)
        </div></td>
         </tr>
        </table>        
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
